package com.example.demozy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * 挑战赛类
 * @author 王成龙
 */
public class Challenge {
    // **************** 公开变量

    // **************** 私有变量

    /**
     * 挑战赛id
     */
    private int challengeId;

    /**
     * 挑战赛名称
     */
    private String challengeName;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 开始时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp startTime;

    /**
     * 结束时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp endTime;

    /**
     * 股票代码
     */
    private String stockCode;

    /**
     * 起始资金
     */
    private double startingFunds;

    /**
     * 最大参赛人数
     */
    private int maxParticipantsNumber;

    /**
     * 当前参赛人数
     */
    private int participantsNumber;

    /**
     * 挑战赛状态，
     */
    private int challengeStat;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp createTime;

    // **************** 继承方法

    // **************** 公开方法

    public int getChallengeId() {
        return challengeId;
    }

    public void setChallengeId(int challengeId) {
        this.challengeId = challengeId;
    }

    public String getChallengeName() {
        return challengeName;
    }

    public void setChallengeName(String challengeName) {
        this.challengeName = challengeName;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public double getStartingFunds() {
        return startingFunds;
    }

    public void setStartingFunds(double startingFunds) {
        this.startingFunds = startingFunds;
    }

    public int getMaxParticipantsNumber() {
        return maxParticipantsNumber;
    }

    public void setMaxParticipantsNumber(int maxParticipantsNumber) {
        this.maxParticipantsNumber = maxParticipantsNumber;
    }

    public int getParticipantsNumber() {
        return participantsNumber;
    }

    public void setParticipantsNumber(int participantsNumber) {
        this.participantsNumber = participantsNumber;
    }

    public int getChallengeStat() {
        return challengeStat;
    }

    public void setChallengeStat(int challengeStat) {
        this.challengeStat = challengeStat;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }


    // **************** 私有方法

}
